package xpn.platform.modules.todo.common;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import xpn.platform.common.persistence.AbstractBaseEntity;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;

/**
 * 待办  实体基类
 *
 * @author duwei
 */
@MappedSuperclass
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public abstract class AbstractLink extends AbstractBaseEntity {
    private static final long serialVersionUID = 466307248342380022L;

    /**
     * 业务Id
     */
    @Column(unique = true)
    private String taskId;
    /**
     * 链接Url
     */
    private String linkUrl;

    /**
     * link类型
     */
    private String type;
    /**
     * 待办标题
     */
    private String subject;

    /**
     * 创建人Id
     */
    private String creatorId;

    /**
     * 创建人名称
     */
    private String creatorName;

    /**
     * 创建人部门名称
     */
    private String creatorOrgName;

    /**
     * 发送人id
     */
    private String senderId;

    /**
     * 发送人名称
     */
    private String senderName;

    /**
     * 接收人id
     */
    private String sendeeId;

    /**
     * 发送时间
     */
    private Date sentTime;

    /**
     * 待办分类
     */
    private String category;

    /**
     * 待办分类编码
     *
     */
    private String categoryCode;

    /**
     * 紧急程度
     */
    private Integer emergency;
    
    /**
     * 办理时限
     */
    private Date timelimit;
}
